import request from '@/utils/request'

// 查询年度学校各专业录取情况列表
export function listSchoolMajorYearAdmission(query) {
  return request({
    url: '/system/schoolMajorYearAdmission/list',
    method: 'get',
    params: query
  })
}

// 查询年度学校各专业录取情况列表
export function listSchoolMajorYearAdmissionCheck(query) {
  return request({
    url: '/system/schoolMajorYearAdmission/checkList',
    method: 'get',
    params: query
  })
}

// 查询年度学校各专业录取情况详细
export function getSchoolMajorYearAdmission(id) {
  return request({
    url: '/system/schoolMajorYearAdmission/' + id,
    method: 'get'
  })
}

// 新增年度学校各专业录取情况
export function addSchoolMajorYearAdmission(data) {
  return request({
    url: '/system/schoolMajorYearAdmission',
    method: 'post',
    data: data
  })
}

// 修改年度学校各专业录取情况
export function updateSchoolMajorYearAdmission(data) {
  return request({
    url: '/system/schoolMajorYearAdmission',
    method: 'put',
    data: data
  })
}

// 删除年度学校各专业录取情况
export function delSchoolMajorYearAdmission(id) {
  return request({
    url: '/system/schoolMajorYearAdmission/' + id,
    method: 'delete'
  })
}
